package com.delin.opengltest;

import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.SurfaceView;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

public class MainActivity extends Activity{
    private GLSurfaceView glSurfaceView;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        GLSurfaceView glSurfaceView = new GLSurfaceView(getBaseContext());

        setContentView(R.layout.activity_main);
        MyRenderer myRenderer = new MyRenderer();
        glSurfaceView = (GLSurfaceView) findViewById(R.id.myGLSurfaceView);
        glSurfaceView.setRenderer(myRenderer);
    }


}
